package yanyi.community.mapper;

import yanyi.community.model.Notification;

import java.util.List;
import java.util.Map;

public interface NotificationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Notification record);

    int insertSelective(Notification record);

    Notification selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Notification record);

    int updateByPrimaryKey(Notification record);

    Long unreadCount(Long userId);
    List<Notification> findAll(Map<String,Object> map);
}